home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / CIIGSIncludes / Font.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-03  |  4.0 KB  |  109 lines  |  [TEXT/MPS ]

  1. /********************************************
  2. ; File: Font.h
  3. ;
  4. ;
  5. ; Copyright Apple Computer, Inc.1986-90
  6. ; All Rights Reserved
  7. ;
  8. ********************************************/
  9. #ifndef __TYPES__
  10. #include <TYPES.h>
  11. #endif
  12.  
  13. #ifndef __QUICKDRAW__
  14. #include <QUICKDRAW.h>
  15. #endif
  16.  
  17. #ifndef __FONT__
  18. #define __FONT__
  19.  
  20.  
  21. /* Error Codes */
  22. #define fmDupStartUpErr 0x1B01  /* duplicate FMStartUp call */
  23. #define fmResetErr 0x1B02  /* can't reset the Font Manager */
  24. #define fmNotActiveErr 0x1B03  /* Font Manager not active */
  25. #define fmFamNotFndErr 0x1B04  /* family not found */
  26. #define fmFontNtFndErr 0x1B05  /* font not found */
  27. #define fmFontMemErr 0x1B06  /* font not in memory */
  28. #define fmSysFontErr 0x1B07  /* system font cannot be purgeable */
  29. #define fmBadFamNumErr 0x1B08  /* illegal family number */
  30. #define fmBadSizeErr 0x1B09  /* illegal size */
  31. #define fmBadNameErr 0x1B0A  /* illegal name length */
  32. #define fmMenuErr 0x1B0B  /* fix font menu never called */
  33. #define fmScaleSizeErr 0x1B0C  /* scaled size of font exeeds limits */
  34.  
  35. /* Font Family Numbers */
  36. #define chicago 0xFFFD
  37. #define shaston 0xFFFE
  38. #define systemFont0 0x0000
  39. #define systemFont1 0x0001
  40. #define newYork 0x0002
  41. #define geneva 0x0003
  42. #define monaco 0x0004
  43. #define venice 0x0005
  44. #define london 0x0006
  45. #define athens 0x0007
  46. #define sanFrancisco 0x0008
  47. #define toronto 0x0009
  48. #define cairo 0x000B
  49. #define losAngeles 0x000C
  50. #define zapfDingbats 0x000D
  51. #define bookman 0x000E
  52. #define helveticaNarrow 0x000F
  53. #define palatino 0x0010
  54. #define zapfChancery 0x0012
  55. #define times 0x0014
  56. #define helvetica 0x0015
  57. #define courier 0x0016
  58. #define symbol 0x0017
  59. #define taliesin 0x0018
  60. #define avanteGarde 0x0021
  61. #define newCenturySchoolbook 0x0022
  62. #define baseOnlyBit 0x0020  /* FamSpecBits */
  63. #define notBaseBit 0x0020  /* FamStatBits */
  64. #define memOnlyBit 0x0001  /* FontSpecBits */
  65. #define realOnlyBit 0x0002  /* FontSpecBits */
  66. #define anyFamBit 0x0004  /* FontSpecBits */
  67. #define anyStyleBit 0x0008  /* FontSpecBits */
  68. #define anySizeBit 0x0010  /* FontSpecBits */
  69. #define memBit 0x0001  /* FontStatBits */
  70. #define unrealBit 0x0002  /* FontStatBits */
  71. #define apFamBit 0x0004  /* FontStatBits */
  72. #define apVarBit 0x0008  /* FontStatBits */
  73. #define purgeBit 0x0010  /* FontStatBits */
  74. #define notDiskBit 0x0020  /* FontStatBits */
  75. #define notFoundBit 0x8000  /* FontStatBits */
  76. #define dontScaleBit 0x0001  /* Scale Word */
  77. struct FontStatRec {
  78.    FontID resultID; /*  */
  79.    Word resultStats; /*  */
  80. } ;
  81. typedef struct FontStatRec FontStatRec, *FontStatRecPtr, **FontStatRecHndl;
  82. extern pascal void AddFamily() inline(0x0D1B,dispatcher);
  83. extern pascal void AddFontVar() inline(0x141B,dispatcher);
  84. extern pascal LongWord ChooseFont () inline(0x161B,dispatcher);
  85. extern pascal Word CountFamilies() inline(0x091B,dispatcher);
  86. extern pascal Word CountFonts() inline(0x101B,dispatcher);
  87. extern pascal Word FamNum2ItemID() inline(0x1B1B,dispatcher);
  88. extern pascal Word FindFamily() inline(0x0A1B,dispatcher);
  89. extern pascal void FindFontStats() inline(0x111B,dispatcher);
  90. extern pascal void FixFontMenu() inline(0x151B,dispatcher);
  91. extern pascal void FMBootInit() inline(0x011B,dispatcher);
  92. extern pascal LongWord FMGetCurFID () inline(0x1A1B,dispatcher);
  93. extern pascal LongWord FMGetSysFID () inline(0x191B,dispatcher);
  94. extern pascal void FMReset() inline(0x051B,dispatcher);
  95. extern pascal void FMSetSysFont() inline(0x181B,dispatcher);
  96. extern pascal void FMShutDown() inline(0x031B,dispatcher);
  97. extern pascal void FMStartUp() inline(0x021B,dispatcher);
  98. extern pascal Boolean FMStatus() inline(0x061B,dispatcher);
  99. extern pascal Word FMVersion() inline(0x041B,dispatcher);
  100. extern pascal Word GetFamInfo() inline(0x0B1B,dispatcher);
  101. extern pascal Word GetFamNum() inline(0x0C1B,dispatcher);
  102. extern pascal void InstallFont() inline(0x0E1B,dispatcher);
  103. extern pascal void InstallWithStats() inline(0x1C1B,dispatcher);
  104. extern pascal Word ItemID2FamNum() inline(0x171B,dispatcher);
  105. extern pascal void LoadFont() inline(0x121B,dispatcher);
  106. extern pascal void LoadSysFont() inline(0x131B,dispatcher);
  107. extern pascal void SetPurgeStat() inline(0x0F1B,dispatcher);
  108. #endif
  109.